<template>
  <div></div>
</template>

<script>
  export default {
    data() {
      return {
        bid: '',
        pid: '',
      }
    },
    created() {
      this.bid = this.$route.query.bid;
      this.type = this.$route.query.type;
    },

    beforeRouteEnter(to, from, next) {
      let that = this;
      next(vm => {
        //vm.$router.replace(from.path);
        console.log('vm', vm)
        vm.$router.replace({
          path: from.path,
          query: {
            bid: vm.bid,
            type: vm.type,
            t: Date.now()
          }
        })
      })
    }
  }
</script>

<style scoped>

</style>
